package vno.ky.XML
{
	public class SndRes
	{
		private var resourse:XML=
			<res>
							<mapRes>
								<map id="9">
									<thumbmap	id="000000000" url="VNO/Maps/9/"/>
									<tiles		id="000000001" numX="26" numY="7" url="VNO/Maps/9/Tiles/"/>
								</map>
								<map id="10">
									<thumbmap	id="000001000" url="VNO/Maps/10/"/>
									<tiles		id="000001001" numX="25" numY="25" url="VNO/Maps/10/Tiles/"/>
								</map>
								<map id="11">
									<thumbmap	id="000002000" url="VNO/Maps/11/"/>
									<tiles		id="000002001" numX="50" numY="27" url="VNO/Maps/11/Tiles/"/>
								</map>
							</mapRes>
							<characterRes>
								<playerRes>
									<player id="0">
										<walk	id="000030000" url="VNO/Characters/Player/CH20205.png"/>
									</player>
								</playerRes>
								<npcRes>
									<npc id="100000">
										<pic	id="000040000" url="VNO/Characters/NPCs/0.png"/>
										<face	id="000040001" url="VNO/Characters/NPCs/0.png"/>
									</npc>
									<npc id="100001">
										<pic	id="000040100" url="VNO/Characters/NPCs/0.png"/>
										<face	id="000040101" url="VNO/Characters/NPCs/0.png"/>
									</npc>
								</npcRes>
							</characterRes>
							<uiRes>
								<walkTarget>
									<assets id = "0">	
										<arrow id="001000000" url="VNO/Ui/Components/target_arrow.png"/>
									</assets>
								</walkTarget>
								<bgmButton>
									<assets id = "1">
										<button id="001000001" url="VNO/Ui/Components/bgm_button.png"/>
									</assets>
								</bgmButton>
							</uiRes>
							<sndRes>
								<mainBgm>
									<assets id = "0">	
										<bgm id="002000000" url="VNO/Audio/BGM/001-School Anthem.mp3"/>
									</assets>
								</mainBgm>
							</sndRes>;
						</res>
		public function SndRes()
		{
			trace(getsndRes2(resourse));
		}
		public function getsndRes(resourse:XML):XML
		{
			var result:XML=<sndRes/>;
			result.appendChild(<assets/>);
			result.assets=resourse.sndRes..assets;
			return result;
		}
		public function getsndRes2(resourse:XML):XML
		{
			var result:XML=<sndRes/>;
			result.appendChild(<assets/>);
			var temp:XML=<temp/>;
			temp.tempassets.assets=resourse.sndRes..assets;
			for(var i:int =0;temp.tempassets.assets[i]!=null;i++)
			{
				result.assets[i]=temp.tempassets.assets[i];
			}
			return result;
		}
	}
}